<script>
export default {
  onLaunch: function () {
    console.log("App Launch")
  },
  onShow: function () {
    console.log("App Show")
    if (!uni.getStorageSync("token")) {
      uni.reLaunch({
        url: "/pages/login/login"
      })
    }
  },
  onHide: function () {
    console.log("App Hide")
  }
}
</script>

<style>
>>> checkbox .wx-checkbox-input {
  width: 30rpx;
  height: 30rpx;
  border-radius: 50% !important;
  border: 2rpx solid #828181 !important;
}

>>> checkbox .wx-checkbox-input.wx-checkbox-input-checked {
  border: 2rpx solid #0c3ca8 !important;
  background-color: #0c3ca8 !important;
  color: #ffffff !important;
}

>>> checkbox .wx-checkbox-input.wx-checkbox-input-checked::before {
  color: #ffffff !important;
}
.flex-1 {
  flex: 1;
}

/*每个页面公共css */
.c-palceholder {
  color: #f4e1ba;
}

view,
image {
  box-sizing: border-box;
}

.flex {
  display: flex;
}

.v-center {
  display: flex;
  align-items: center;
}

.w-100 {
  width: 100%;
}

.h-100 {
  height: 100%;
}

.space-between {
  display: flex;
  justify-content: space-between;
}

.h-center {
  display: flex;
  justify-content: center;
}

.center {
  display: flex;
  align-items: center;
  justify-content: center;
}
</style>
